import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './views/Home.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes:[
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('./views/About.vue')
    },
    {
      path: '/private',
      name: 'Private',
      component: () => import('./views/Private.vue')
    },
    {
      path: '/public',
      name: 'Public',
      component: () => import('./views/Public.vue')
    },{
      path: '/configure',
      name: 'Configure',
      component: () => import('./views/Configure.vue')
    }
  ]
})

export default router
